﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DoveyGeneric
{

    /// <summary>
    /// 泛型类
    /// 就是一个类满足多个类型的需求
    /// </summary>
    public class GenericClass<T>
    {

    }

    /// <summary>
    /// 泛型类的继承
    /// </summary>
    public class ChildClass : GenericClass<int>
    {

    }
    public class ChildTwoClass<S, T> : GenericClass<S>, GenericInterface<T>
    {

    }

    /// <summary>
    /// 泛型接口：一个接口满足多个类型的需求
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface GenericInterface<T>
    {

    }

    /// <summary>
    /// 泛型委托：一个委托满足多个类型的需求
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public delegate void Do<T>();
        
}
